package com.forekenow.Demo14;

/**
 * 动态可变参数Object....values
 * Object[] values
 */
public class DyVarParameter {
    public void m1(int a,int b){
        System.out.println(a+b);
    }

    public void m2(int a,int b,Object...values){//Object...values = Object[] values

    }
    public static void main(String[] args) {
        DyVarParameter dy = new DyVarParameter();
        dy.m1(1,2);
        dy.m2(3,4,"a1","a2","a3");
    }
}
